package com.woniu.day8.pojo;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Transient;


import java.io.Serializable;
import java.util.List;


/**
* 
* @TableName userinfo
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("userinfo")
public class UserInfo implements Serializable {

    /**
    * 用户id
    */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Integer id;
    @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
    private String username;

    @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
    private String password;

    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private Integer type;

    @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
    private String remarks;

    @TableField(updateStrategy = FieldStrategy.NOT_EMPTY)
    private String imgpath;

    @TableField(updateStrategy = FieldStrategy.NOT_NULL)
    private Integer isdelete;

    @TableField(exist = false)
    private List<Role> roles;
}
